﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class Linq2 : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        dmab09132DataContext db = new dmab09132DataContext();
        //Customer c = new Customer();

        var result = from c in db.Customers
            where c.ZipCode == 1000
            select new { c.Name, c.Email, c.Address };

        

        GridView1.DataSource = result;
        GridView1.DataBind();
        
    }
}